package com.ts.api.common.context;

import com.ts.api.module.channel.entity.ChannelRequest;

/**
 *  访问上下文
 */
public class ChannelRequestContext {

    public static final ThreadLocal<ChannelRequest> REQ = new ThreadLocal<>();

    /**
     * 获取对象
     *
     * @return
     */
    public static ChannelRequest get() {
        return REQ.get();
    }

    /**
     *  获取表单或注册流程
     *
     *  @return
     */
    public static String getTableFlow() {
        return get().getTableFlow();
    }
}
